﻿#region Copyright
/// <copyright>
/// Copyright (c) 2008 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace Osh.Dvb
{
	/// <summary>
	/// The Program Association Table provides the correspondence between a program_number and the PID value of
	/// the Transport Stream packets which carry the program definition.
	/// See ISO/IEC 13818-1 for more information.
	/// </summary>
	public class ProgramAssociationTable
	{
		private int _transportStreamId;
		private Dictionary<int, int> _programs = new Dictionary<int,int>();

		public ProgramAssociationTable()
		{
		}

		public int TransportStreamId
		{
			get { return _transportStreamId; }
			set { _transportStreamId = value; }
		}

		/// <summary>
		/// Returns map of program numbers to PIDs.
		/// </summary>
		public IDictionary<int, int> Programs
		{
			get { return _programs; }
		}
	}
}
